package data

import (
	"context"
	data "jmicro/app/jshop/api/internal/domain/do"
	metav1 "jmicro/pkg/common/meta/v1"
)

type UserData interface {
	List(ctx context.Context, orderby []string, pages metav1.ListMeta) (*data.UserListDO, error)
	Create(ctx context.Context, user *data.UserDO) error
	Update(ctx context.Context, user *data.UserDO) error
	Get(ctx context.Context, userID uint64) (*data.UserDO, error)
	GetByMobile(ctx context.Context, mobile string) (*data.UserDO, error)
	CheckPassWord(ctx context.Context, password, encryptedPwd string) error
}
